package com.example.simple.mall.common;

/**
 * Created by IntelliJ IDEA.
 *
 * @author ouyangzhixiang
 * @date 2018/6/19
 */
public enum  ResponseCode {
    SUCCESS(0,"成功"),

    ERROR(1,"错误"),

    NEED_LOGIN(10,"未登录"),

    ILLEGAL_ARGUMENT(2,"参数错误");

    private final int code;

    //描述
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
